package com.zbkj.service.service;

import com.zbkj.common.request.PageParamRequest;
import com.zbkj.common.response.AgentCategoryDetailResponse;
import com.zbkj.common.response.AgentCategoryListResponse;
import com.zbkj.common.response.AgentCategoryPageDataResponse;
import com.zbkj.common.request.AgentCategorySearchRequest;
import com.zbkj.common.request.AgentCategorySaveRequest;
import com.zbkj.common.model.agent.AgentCategory;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zbkj.common.response.BrandAgentCategoryPageDataResponse;

import java.util.List;
/**
* @author dazongzi
* @description AgentCategoryService 接口
* @date 2025-07-01
*/
public interface AgentCategoryService extends IService<AgentCategory> {

    Boolean create(AgentCategorySaveRequest agentCategorySaveRequest);

    /**
     * 分页查询代理分类表
     * @param request 查询条件
     * @param pageParamRequest 分页对行
     * @return 查询结果
     */
    List<AgentCategoryPageDataResponse> getList(AgentCategorySearchRequest request, PageParamRequest pageParamRequest);
    List<BrandAgentCategoryPageDataResponse> getListBrand(AgentCategorySearchRequest request, PageParamRequest pageParamRequest);

    List<AgentCategoryListResponse> getAllList();

    String getNameById(Integer categoryId);

    List<AgentCategory> getListPlatform();
    List<AgentCategory> getListPlatformAndBrand(Integer brandIdByUrl);

    AgentCategory getIdBySn(String categorySn);

    /**
     * 批量删除
     * @param idList
     * @return
     */
    boolean batchDelete(List<Integer> idList);
    boolean batchDeleteBrand(List<Integer> idList);

    /**
     * 修改代理分类表
     * @param agentCategoryRequest
     * @return
     */
    boolean update(AgentCategorySaveRequest agentCategoryRequest);
    boolean updateBrand(AgentCategorySaveRequest agentCategoryRequest);


    /**
     * 查询溯源套餐表详情
     * @param id
     * @return
     */
    AgentCategoryDetailResponse getDetails(Integer id);
    AgentCategoryDetailResponse getDetailsBrand(Integer id);

}